FROM node:16
ENV NODE_ENV=production
RUN npm install pm2 -g
WORKDIR /user/src/app
COPY package*.json /user/src/app
RUN npm install
COPY . /user/src/app
RUN pm2 install pm2-logrotate
EXPOSE 10010
CMD [ "npm", "run", "docker-service" ]


